YearMonth

fun YearMonth(year: Int, month: Month): YearMonth
fun YearMonth(year: Int, month: Month): YearMonth

Creates a new instance of YearMonth with the given parameters.

Since

8.0.0

Parameters

year

The year to represent from Year.MIN_VALUE to Year.MAX_VALUE.

month

The month to represent.


fun YearMonth(year: Year, month: Month): YearMonth
fun YearMonth(year: Year, month: Month): YearMonth

Creates a new instance of YearMonth with the given parameters.

Since

8.0.0

Parameters

year

The year to represent.

month

The month to represent.